<?php


use Phinx\Migration\AbstractMigration;

class FillDefaultStepWorkflowData extends AbstractMigration
{

    /**
     * 获取所有工序分类数据
     * @return array
     */
    public function getAllStepCategoryData()
    {
        $sql = 'select * from step_category';
        $result = $this->query($sql);
        $info = array();
        foreach ($result as $key => $val) {
            $info[$val['code']] = $val;
        }
        return $info;
    }

    /**
     * Change Method.
     *
     * Write your reversible migrations using this method.
     *
     * More information on writing migrations is available here:
     * http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class
     *
     * The following commands can be used in this method and Phinx will
     * automatically reverse them when rolling back:
     *
     *    createTable
     *    renameTable
     *    addColumn
     *    renameColumn
     *    addIndex13
     *    addForeignKey
     *
     * Remember to call "create()" or "update()" and NOT "save()" when working
     * with the Table class.
     */

    /**
     * Migrate Up.
     * @throws Exception
     */
    public function up()
    {
        $allStepCategoryData = $this->getAllStepCategoryData();
        $rows = [
            [
                'data' => [
                    'name' => '角色-S级',
                    'code' => 'character_level_s',
                    'config' => '{"edges": [{"source": "1", "target": "2"}, {"source": "2", "target": "3"}, {"source": "3", "target": "4"}, {"source": "4", "target": "5"}, {"source": "5", "target": "6"}, {"source": "6", "target": "41"}, {"source": "41", "target": "7"}, {"source": "7", "target": "8"}, {"source": "8", "target": "10"}, {"source": "10", "target": "11"}, {"source": "11", "target": "12"}, {"source": "12", "target": "13"}, {"source": "13", "target": "15"}, {"source": "15", "target": "16"}], "nodes": [[{"id": "1", "top": "32px", "left": "180px", "name": "资产-概念-草图设计", "level": "1", "module_id": "1", "module_code": "sketch_design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "2", "top": "89px", "left": "190px", "name": "资产-概念-概念设计", "level": "2", "module_id": "2", "module_code": "design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "3", "top": "146px", "left": "197px", "name": "资产-概念-细化设计", "level": "3", "module_id": "3", "module_code": "post_design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "4", "top": "213px", "left": "213px", "name": "资产-概念-表情设计", "level": "4", "module_id": "4", "module_code": "face_expression_design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "5", "top": "294px", "left": "276.333px", "name": "资产-模型-雕刻模型", "level": "5", "module_id": "5", "module_code": "high_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "6", "top": "336.167px", "left": "278.833px", "name": "资产-模型-引擎模型", "level": "6", "module_id": "6", "module_code": "engine_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "41", "top": "416.167px", "left": "283.5px", "name": "资产-模型-UV和烘焙", "level": "7", "module_id": "41", "module_code": "uv_baking", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "7", "top": "478.167px", "left": "279.667px", "name": "资产-模型-动画模型", "level": "8", "module_id": "7", "module_code": "amin_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "8", "top": "540.833px", "left": "289.667px", "name": "资产-模型-贴图材质", "level": "9", "module_id": "8", "module_code": "texture", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "10", "top": "617.333px", "left": "295.833px", "name": "资产-模型-表情模型", "level": "10", "module_id": "10", "module_code": "character_face_expression", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "11", "top": "714px", "left": "449.167px", "name": "资产-绑定-身体绑定", "level": "11", "module_id": "11", "module_code": "body_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "12", "top": "782.333px", "left": "456.167px", "name": "资产-绑定-表情绑定", "level": "12", "module_id": "12", "module_code": "face_expression_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "13", "top": "850.5px", "left": "460px", "name": "资产-绑定-布料绑定", "level": "13", "module_id": "13", "module_code": "cloth_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "15", "top": "927.5px", "left": "612.333px", "name": "资产-引擎设置-引擎材质", "level": "14", "module_id": "15", "module_code": "engine_material_set", "step_category_id": "5", "step_category_parent_id": "1"}], [{"id": "16", "top": "1014.17px", "left": "622.333px", "name": "资产-引擎设置-引擎布料", "level": "15", "module_id": "16", "module_code": "engine_cloth_set", "step_category_id": "5", "step_category_parent_id": "1"}]], "stepList": [{"id": "1", "code": "sketch_design", "name": "草图设计", "color": "#efd3f4", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "2", "code": "design", "name": "概念设计", "color": "#6b0c60", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "3", "code": "post_design", "name": "细化设计", "color": "#e52350", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "4", "code": "face_expression_design", "name": "表情设计", "color": "#9957cb", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "5", "code": "high_model", "name": "雕刻模型", "color": "#45c666", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "6", "code": "engine_model", "name": "引擎模型", "color": "#d7855b", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "7", "code": "amin_model", "name": "动画模型", "color": "#130419", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "8", "code": "texture", "name": "贴图材质", "color": "#b0bb22", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "9", "code": "hair", "name": "毛发", "color": "#977751", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "10", "code": "character_face_expression", "name": "表情模型", "color": "#445adf", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "11", "code": "body_rig", "name": "身体绑定", "color": "#6a5daa", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "12", "code": "face_expression_rig", "name": "表情绑定", "color": "#0ddb5a", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "13", "code": "cloth_rig", "name": "布料绑定", "color": "#889a21", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "14", "code": "prop_rig", "name": "道具绑定", "color": "#5e4fed", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "15", "code": "engine_material_set", "name": "引擎材质", "color": "#ccc2d7", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "16", "code": "engine_cloth_set", "name": "引擎布料", "color": "#1f4172", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "41", "code": "uv_baking", "name": "UV和烘焙", "color": "#33FF00", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "42", "code": "expression_normal", "name": "表情法线", "color": "#0084FF", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}]}'
                ],
                'step_category' => 'asset'
            ],
            [
                'data' => [
                    'name' => '角色-A级',
                    'code' => 'character_level_a',
                    'config' => '{"edges": [{"source": "1", "target": "2"}, {"source": "2", "target": "3"}, {"source": "3", "target": "4"}, {"source": "4", "target": "5"}, {"source": "5", "target": "6"}, {"source": "6", "target": "41"}, {"source": "41", "target": "7"}, {"source": "7", "target": "8"}, {"source": "8", "target": "10"}, {"source": "10", "target": "11"}, {"source": "11", "target": "12"}, {"source": "12", "target": "13"}, {"source": "13", "target": "15"}, {"source": "15", "target": "16"}], "nodes": [[{"id": "1", "top": "35px", "left": "156px", "name": "资产-概念-草图设计", "level": "1", "module_id": "1", "module_code": "sketch_design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "2", "top": "97px", "left": "165px", "name": "资产-概念-概念设计", "level": "2", "module_id": "2", "module_code": "design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "3", "top": "162px", "left": "189px", "name": "资产-概念-细化设计", "level": "3", "module_id": "3", "module_code": "post_design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "4", "top": "224px", "left": "192px", "name": "资产-概念-表情设计", "level": "4", "module_id": "4", "module_code": "face_expression_design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "5", "top": "294px", "left": "333px", "name": "资产-模型-雕刻模型", "level": "5", "module_id": "5", "module_code": "high_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "6", "top": "355px", "left": "337px", "name": "资产-模型-引擎模型", "level": "6", "module_id": "6", "module_code": "engine_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "41", "top": "413px", "left": "349px", "name": "资产-模型-UV和烘焙", "level": "7", "module_id": "41", "module_code": "uv_baking", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "7", "top": "480px", "left": "349px", "name": "资产-模型-动画模型", "level": "8", "module_id": "7", "module_code": "amin_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "8", "top": "552px", "left": "351px", "name": "资产-模型-贴图材质", "level": "9", "module_id": "8", "module_code": "texture", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "10", "top": "630px", "left": "355px", "name": "资产-模型-表情模型", "level": "10", "module_id": "10", "module_code": "character_face_expression", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "11", "top": "714px", "left": "226px", "name": "资产-绑定-身体绑定", "level": "11", "module_id": "11", "module_code": "body_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "12", "top": "798px", "left": "220px", "name": "资产-绑定-表情绑定", "level": "12", "module_id": "12", "module_code": "face_expression_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "13", "top": "867px", "left": "226px", "name": "资产-绑定-布料绑定", "level": "13", "module_id": "13", "module_code": "cloth_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "15", "top": "940px", "left": "344px", "name": "资产-引擎设置-引擎材质", "level": "14", "module_id": "15", "module_code": "engine_material_set", "step_category_id": "5", "step_category_parent_id": "1"}], [{"id": "16", "top": "1021px", "left": "361px", "name": "资产-引擎设置-引擎布料", "level": "15", "module_id": "16", "module_code": "engine_cloth_set", "step_category_id": "5", "step_category_parent_id": "1"}]], "stepList": [{"id": "1", "code": "sketch_design", "name": "草图设计", "color": "#efd3f4", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "2", "code": "design", "name": "概念设计", "color": "#6b0c60", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "3", "code": "post_design", "name": "细化设计", "color": "#e52350", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "4", "code": "face_expression_design", "name": "表情设计", "color": "#9957cb", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "5", "code": "high_model", "name": "雕刻模型", "color": "#45c666", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "6", "code": "engine_model", "name": "引擎模型", "color": "#d7855b", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "7", "code": "amin_model", "name": "动画模型", "color": "#130419", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "8", "code": "texture", "name": "贴图材质", "color": "#b0bb22", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "10", "code": "character_face_expression", "name": "表情模型", "color": "#445adf", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "11", "code": "body_rig", "name": "身体绑定", "color": "#6a5daa", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "12", "code": "face_expression_rig", "name": "表情绑定", "color": "#0ddb5a", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "13", "code": "cloth_rig", "name": "布料绑定", "color": "#889a21", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "14", "code": "prop_rig", "name": "道具绑定", "color": "#5e4fed", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "15", "code": "engine_material_set", "name": "引擎材质", "color": "#ccc2d7", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "16", "code": "engine_cloth_set", "name": "引擎布料", "color": "#1f4172", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "41", "code": "uv_baking", "name": "UV和烘焙", "color": "#33FF00", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "42", "code": "expression_normal", "name": "表情法线", "color": "#0084FF", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}]}'
                ],
                'step_category' => 'asset'
            ],
            [
                'data' => [
                    'name' => '角色-B级',
                    'code' => 'character_level_b',
                    'config' => '{"edges": [{"source": "1", "target": "2"}, {"source": "2", "target": "3"}, {"source": "3", "target": "5"}, {"source": "5", "target": "6"}, {"source": "6", "target": "41"}, {"source": "41", "target": "7"}, {"source": "7", "target": "8"}, {"source": "8", "target": "11"}, {"source": "11", "target": "12"}, {"source": "12", "target": "13"}, {"source": "13", "target": "15"}, {"source": "15", "target": "16"}], "nodes": [[{"id": "1", "top": "38px", "left": "41px", "name": "资产-概念-草图设计", "level": "1", "module_id": "1", "module_code": "sketch_design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "2", "top": "98px", "left": "47px", "name": "资产-概念-概念设计", "level": "2", "module_id": "2", "module_code": "design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "3", "top": "157px", "left": "52px", "name": "资产-概念-细化设计", "level": "3", "module_id": "3", "module_code": "post_design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "5", "top": "222px", "left": "135px", "name": "资产-模型-雕刻模型", "level": "4", "module_id": "5", "module_code": "high_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "6", "top": "282px", "left": "140px", "name": "资产-模型-引擎模型", "level": "5", "module_id": "6", "module_code": "engine_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "41", "top": "345px", "left": "150px", "name": "资产-模型-UV和烘焙", "level": "6", "module_id": "41", "module_code": "uv_baking", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "7", "top": "408px", "left": "155px", "name": "资产-模型-动画模型", "level": "7", "module_id": "7", "module_code": "amin_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "8", "top": "476px", "left": "154px", "name": "资产-模型-贴图材质", "level": "8", "module_id": "8", "module_code": "texture", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "11", "top": "636px", "left": "41px", "name": "资产-绑定-身体绑定", "level": "9", "module_id": "11", "module_code": "body_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "12", "top": "712px", "left": "40px", "name": "资产-绑定-表情绑定", "level": "10", "module_id": "12", "module_code": "face_expression_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "13", "top": "783px", "left": "48px", "name": "资产-绑定-布料绑定", "level": "11", "module_id": "13", "module_code": "cloth_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "15", "top": "872px", "left": "198px", "name": "资产-引擎设置-引擎材质", "level": "12", "module_id": "15", "module_code": "engine_material_set", "step_category_id": "5", "step_category_parent_id": "1"}], [{"id": "16", "top": "941px", "left": "216px", "name": "资产-引擎设置-引擎布料", "level": "13", "module_id": "16", "module_code": "engine_cloth_set", "step_category_id": "5", "step_category_parent_id": "1"}]], "stepList": [{"id": "1", "code": "sketch_design", "name": "草图设计", "color": "#efd3f4", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "2", "code": "design", "name": "概念设计", "color": "#6b0c60", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "3", "code": "post_design", "name": "细化设计", "color": "#e52350", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "4", "code": "face_expression_design", "name": "表情设计", "color": "#9957cb", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "5", "code": "high_model", "name": "雕刻模型", "color": "#45c666", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "6", "code": "engine_model", "name": "引擎模型", "color": "#d7855b", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "7", "code": "amin_model", "name": "动画模型", "color": "#130419", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "8", "code": "texture", "name": "贴图材质", "color": "#b0bb22", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "10", "code": "character_face_expression", "name": "表情模型", "color": "#445adf", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "11", "code": "body_rig", "name": "身体绑定", "color": "#6a5daa", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "12", "code": "face_expression_rig", "name": "表情绑定", "color": "#0ddb5a", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "13", "code": "cloth_rig", "name": "布料绑定", "color": "#889a21", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "14", "code": "prop_rig", "name": "道具绑定", "color": "#5e4fed", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "15", "code": "engine_material_set", "name": "引擎材质", "color": "#ccc2d7", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "16", "code": "engine_cloth_set", "name": "引擎布料", "color": "#1f4172", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "41", "code": "uv_baking", "name": "UV和烘焙", "color": "#33FF00", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "42", "code": "expression_normal", "name": "表情法线", "color": "#0084FF", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}]}'
                ],
                'step_category' => 'asset'
            ],
            [
                'data' => [
                    'name' => '角色-C级',
                    'code' => 'character_level_c',
                    'config' => '{"edges": [{"source": "1", "target": "2"}, {"source": "2", "target": "3"}, {"source": "3", "target": "5"}, {"source": "5", "target": "6"}, {"source": "6", "target": "41"}, {"source": "41", "target": "7"}, {"source": "7", "target": "8"}, {"source": "8", "target": "11"}, {"source": "11", "target": "12"}, {"source": "12", "target": "13"}, {"source": "13", "target": "15"}, {"source": "15", "target": "16"}], "nodes": [[{"id": "1", "top": "27px", "left": "74px", "name": "资产-概念-草图设计", "level": "1", "module_id": "1", "module_code": "sketch_design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "2", "top": "97px", "left": "79px", "name": "资产-概念-概念设计", "level": "2", "module_id": "2", "module_code": "design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "3", "top": "164px", "left": "82px", "name": "资产-概念-细化设计", "level": "3", "module_id": "3", "module_code": "post_design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "5", "top": "251px", "left": "157px", "name": "资产-模型-雕刻模型", "level": "4", "module_id": "5", "module_code": "high_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "6", "top": "324px", "left": "158px", "name": "资产-模型-引擎模型", "level": "5", "module_id": "6", "module_code": "engine_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "41", "top": "402px", "left": "156px", "name": "资产-模型-UV和烘焙", "level": "6", "module_id": "41", "module_code": "uv_baking", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "7", "top": "472px", "left": "156px", "name": "资产-模型-动画模型", "level": "7", "module_id": "7", "module_code": "amin_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "8", "top": "534px", "left": "158px", "name": "资产-模型-贴图材质", "level": "8", "module_id": "8", "module_code": "texture", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "11", "top": "620px", "left": "43px", "name": "资产-绑定-身体绑定", "level": "9", "module_id": "11", "module_code": "body_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "12", "top": "689px", "left": "45px", "name": "资产-绑定-表情绑定", "level": "10", "module_id": "12", "module_code": "face_expression_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "13", "top": "753px", "left": "48px", "name": "资产-绑定-布料绑定", "level": "11", "module_id": "13", "module_code": "cloth_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "15", "top": "844px", "left": "179px", "name": "资产-引擎设置-引擎材质", "level": "12", "module_id": "15", "module_code": "engine_material_set", "step_category_id": "5", "step_category_parent_id": "1"}], [{"id": "16", "top": "926px", "left": "182px", "name": "资产-引擎设置-引擎布料", "level": "13", "module_id": "16", "module_code": "engine_cloth_set", "step_category_id": "5", "step_category_parent_id": "1"}]], "stepList": [{"id": "1", "code": "sketch_design", "name": "草图设计", "color": "#efd3f4", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "2", "code": "design", "name": "概念设计", "color": "#6b0c60", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "3", "code": "post_design", "name": "细化设计", "color": "#e52350", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "4", "code": "face_expression_design", "name": "表情设计", "color": "#9957cb", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "5", "code": "high_model", "name": "雕刻模型", "color": "#45c666", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "6", "code": "engine_model", "name": "引擎模型", "color": "#d7855b", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "7", "code": "amin_model", "name": "动画模型", "color": "#130419", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "8", "code": "texture", "name": "贴图材质", "color": "#b0bb22", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "10", "code": "character_face_expression", "name": "表情模型", "color": "#445adf", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "11", "code": "body_rig", "name": "身体绑定", "color": "#6a5daa", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "12", "code": "face_expression_rig", "name": "表情绑定", "color": "#0ddb5a", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "13", "code": "cloth_rig", "name": "布料绑定", "color": "#889a21", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "14", "code": "prop_rig", "name": "道具绑定", "color": "#5e4fed", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "15", "code": "engine_material_set", "name": "引擎材质", "color": "#ccc2d7", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "16", "code": "engine_cloth_set", "name": "引擎布料", "color": "#1f4172", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "41", "code": "uv_baking", "name": "UV和烘焙", "color": "#33FF00", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "42", "code": "expression_normal", "name": "表情法线", "color": "#0084FF", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}]}'
                ],
                'step_category' => 'asset'
            ],
            [
                'data' => [
                    'name' => '道具-S级',
                    'code' => 'prop_level_s',
                    'config' => '{"edges": [{"source": "2", "target": "5"}, {"source": "5", "target": "6"}, {"source": "6", "target": "8"}, {"source": "8", "target": "14"}, {"source": "14", "target": "15"}], "nodes": [[{"id": "2", "top": "59px", "left": "64px", "name": "资产-概念-概念设计", "level": "1", "module_id": "2", "module_code": "design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "5", "top": "124px", "left": "105px", "name": "资产-模型-雕刻模型", "level": "2", "module_id": "5", "module_code": "high_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "6", "top": "197px", "left": "139px", "name": "资产-模型-引擎模型", "level": "3", "module_id": "6", "module_code": "engine_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "8", "top": "261px", "left": "152px", "name": "资产-模型-贴图", "level": "4", "module_id": "8", "module_code": "texture", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "14", "top": "366px", "left": "166px", "name": "资产-绑定-道具绑定", "level": "5", "module_id": "14", "module_code": "prop_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "15", "top": "495px", "left": "260px", "name": "资产-引擎设置-引擎材质", "level": "6", "module_id": "15", "module_code": "engine_material_set", "step_category_id": "5", "step_category_parent_id": "1"}]], "stepList": [{"id": "1", "code": "sketch_design", "name": "草图设计", "color": "#efd3f4", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "2", "code": "design", "name": "概念设计", "color": "#6b0c60", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "3", "code": "post_design", "name": "细化设计", "color": "#e52350", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "4", "code": "face_expression_design", "name": "表情设计", "color": "#9957cb", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "5", "code": "high_model", "name": "雕刻模型", "color": "#45c666", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "6", "code": "engine_model", "name": "引擎模型", "color": "#d7855b", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "7", "code": "amin_model", "name": "动画模型", "color": "#130419", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "8", "code": "texture", "name": "贴图材质", "color": "#b0bb22", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "10", "code": "character_face_expression", "name": "表情模型", "color": "#445adf", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "11", "code": "body_rig", "name": "身体绑定", "color": "#6a5daa", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "12", "code": "face_expression_rig", "name": "表情绑定", "color": "#0ddb5a", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "13", "code": "cloth_rig", "name": "布料绑定", "color": "#889a21", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "14", "code": "prop_rig", "name": "道具绑定", "color": "#5e4fed", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "15", "code": "engine_material_set", "name": "引擎材质", "color": "#ccc2d7", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "16", "code": "engine_cloth_set", "name": "引擎布料", "color": "#1f4172", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "41", "code": "uv_baking", "name": "UV和烘焙", "color": "#33FF00", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "42", "code": "expression_normal", "name": "表情法线", "color": "#0084FF", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}], "step_category_id": ["1"], "stepCategoryAttrList": [{"attribute_id": "1", "attribute_name": "风格", "attribute_value": "写实", "attributeOptions": [{"label": "写实", "value": "1"}, {"label": "卡通", "value": "2"}, {"label": "三渲二", "value": "3"}]}, {"attribute_id": "2", "attribute_name": "资产类型", "attribute_value": "道具", "attributeOptions": [{"label": "角色", "value": "4"}, {"label": "道具", "value": "5"}, {"label": "场景", "value": "6"}, {"label": "关卡", "value": "7"}]}, {"attribute_id": "3", "attribute_name": "等级", "attribute_value": "S", "attributeOptions": [{"label": "S", "value": "8"}, {"label": "A", "value": "9"}, {"label": "B", "value": "10"}, {"label": "C", "value": "11"}]}]}'
                ],
                'step_category' => 'asset'
            ],
            [
                'data' => [
                    'name' => '道具-A级',
                    'code' => 'prop_level_a',
                    'config' => '{"edges": [{"source": "2", "target": "5"}, {"source": "5", "target": "6"}, {"source": "6", "target": "8"}, {"source": "8", "target": "14"}, {"source": "14", "target": "15"}], "nodes": [[{"id": "2", "top": "-10px", "left": "127px", "name": "资产-概念-概念设计", "level": "1", "module_id": "2", "module_code": "design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "5", "top": "60px", "left": "137px", "name": "资产-模型-雕刻模型", "level": "2", "module_id": "5", "module_code": "high_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "6", "top": "128px", "left": "138px", "name": "资产-模型-引擎模型", "level": "3", "module_id": "6", "module_code": "engine_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "8", "top": "213px", "left": "151px", "name": "资产-模型-贴图", "level": "4", "module_id": "8", "module_code": "texture", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "14", "top": "271px", "left": "132px", "name": "资产-绑定-道具绑定", "level": "5", "module_id": "14", "module_code": "prop_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "15", "top": "359px", "left": "144px", "name": "资产-引擎设置-引擎材质", "level": "6", "module_id": "15", "module_code": "engine_material_set", "step_category_id": "5", "step_category_parent_id": "1"}]], "stepList": [{"id": "1", "code": "sketch_design", "name": "草图设计", "color": "#efd3f4", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "2", "code": "design", "name": "概念设计", "color": "#6b0c60", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "3", "code": "post_design", "name": "细化设计", "color": "#e52350", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "4", "code": "face_expression_design", "name": "表情设计", "color": "#9957cb", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "5", "code": "high_model", "name": "雕刻模型", "color": "#45c666", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "6", "code": "engine_model", "name": "引擎模型", "color": "#d7855b", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "7", "code": "amin_model", "name": "动画模型", "color": "#130419", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "8", "code": "texture", "name": "贴图材质", "color": "#b0bb22", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "10", "code": "character_face_expression", "name": "表情模型", "color": "#445adf", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "11", "code": "body_rig", "name": "身体绑定", "color": "#6a5daa", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "12", "code": "face_expression_rig", "name": "表情绑定", "color": "#0ddb5a", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "13", "code": "cloth_rig", "name": "布料绑定", "color": "#889a21", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "14", "code": "prop_rig", "name": "道具绑定", "color": "#5e4fed", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "15", "code": "engine_material_set", "name": "引擎材质", "color": "#ccc2d7", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "16", "code": "engine_cloth_set", "name": "引擎布料", "color": "#1f4172", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "41", "code": "uv_baking", "name": "UV和烘焙", "color": "#33FF00", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "42", "code": "expression_normal", "name": "表情法线", "color": "#0084FF", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}], "step_category_id": ["1"], "stepCategoryAttrList": [{"attribute_id": "1", "attribute_name": "风格", "attribute_value": "写实", "attributeOptions": [{"label": "写实", "value": "1"}, {"label": "卡通", "value": "2"}, {"label": "三渲二", "value": "3"}]}, {"attribute_id": "2", "attribute_name": "资产类型", "attribute_value": "道具", "attributeOptions": [{"label": "角色", "value": "4"}, {"label": "道具", "value": "5"}, {"label": "场景", "value": "6"}, {"label": "关卡", "value": "7"}]}, {"attribute_id": "3", "attribute_name": "等级", "attribute_value": "A", "attributeOptions": [{"label": "S", "value": "8"}, {"label": "A", "value": "9"}, {"label": "B", "value": "10"}, {"label": "C", "value": "11"}]}]}'
                ],
                'step_category' => 'asset'
            ],
            [
                'data' => [
                    'name' => '道具-B级',
                    'code' => 'prop_level_b',
                    'config' => '{"edges": [{"source": "2", "target": "5"}, {"source": "5", "target": "6"}, {"source": "6", "target": "8"}, {"source": "8", "target": "14"}, {"source": "14", "target": "15"}], "nodes": [[{"id": "2", "top": "47px", "left": "111px", "name": "资产-概念-概念设计", "level": "1", "module_id": "2", "module_code": "design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "5", "top": "139px", "left": "151px", "name": "资产-模型-雕刻模型", "level": "2", "module_id": "5", "module_code": "high_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "6", "top": "203px", "left": "164px", "name": "资产-模型-引擎模型", "level": "3", "module_id": "6", "module_code": "engine_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "8", "top": "282px", "left": "168px", "name": "资产-模型-贴图", "level": "4", "module_id": "8", "module_code": "texture", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "14", "top": "343px", "left": "162px", "name": "资产-绑定-道具绑定", "level": "5", "module_id": "14", "module_code": "prop_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "15", "top": "417px", "left": "167px", "name": "资产-引擎设置-引擎材质", "level": "6", "module_id": "15", "module_code": "engine_material_set", "step_category_id": "5", "step_category_parent_id": "1"}]], "stepList": [{"id": "1", "code": "sketch_design", "name": "草图设计", "color": "#efd3f4", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "2", "code": "design", "name": "概念设计", "color": "#6b0c60", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "3", "code": "post_design", "name": "细化设计", "color": "#e52350", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "4", "code": "face_expression_design", "name": "表情设计", "color": "#9957cb", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "5", "code": "high_model", "name": "雕刻模型", "color": "#45c666", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "6", "code": "engine_model", "name": "引擎模型", "color": "#d7855b", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "7", "code": "amin_model", "name": "动画模型", "color": "#130419", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "8", "code": "texture", "name": "贴图材质", "color": "#b0bb22", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "10", "code": "character_face_expression", "name": "表情模型", "color": "#445adf", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "11", "code": "body_rig", "name": "身体绑定", "color": "#6a5daa", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "12", "code": "face_expression_rig", "name": "表情绑定", "color": "#0ddb5a", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "13", "code": "cloth_rig", "name": "布料绑定", "color": "#889a21", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "14", "code": "prop_rig", "name": "道具绑定", "color": "#5e4fed", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "15", "code": "engine_material_set", "name": "引擎材质", "color": "#ccc2d7", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "16", "code": "engine_cloth_set", "name": "引擎布料", "color": "#1f4172", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "41", "code": "uv_baking", "name": "UV和烘焙", "color": "#33FF00", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "42", "code": "expression_normal", "name": "表情法线", "color": "#0084FF", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}], "step_category_id": ["1"], "stepCategoryAttrList": [{"attribute_id": "1", "attribute_name": "风格", "attribute_value": "写实", "attributeOptions": [{"label": "写实", "value": "1"}, {"label": "卡通", "value": "2"}, {"label": "三渲二", "value": "3"}]}, {"attribute_id": "2", "attribute_name": "资产类型", "attribute_value": "道具", "attributeOptions": [{"label": "角色", "value": "4"}, {"label": "道具", "value": "5"}, {"label": "场景", "value": "6"}, {"label": "关卡", "value": "7"}]}, {"attribute_id": "3", "attribute_name": "等级", "attribute_value": "B", "attributeOptions": [{"label": "S", "value": "8"}, {"label": "A", "value": "9"}, {"label": "B", "value": "10"}, {"label": "C", "value": "11"}]}]}'
                ],
                'step_category' => 'asset'
            ],
            [
                'data' => [
                    'name' => '道具-C级',
                    'code' => 'prop_level_c',
                    'config' => '{"edges": [{"source": "2", "target": "6"}, {"source": "6", "target": "8"}, {"source": "8", "target": "14"}, {"source": "14", "target": "15"}], "nodes": [[{"id": "2", "top": "-28px", "left": "228px", "name": "资产-概念-概念设计", "level": "1", "module_id": "2", "module_code": "design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "6", "top": "78.7692px", "left": "228.462px", "name": "资产-模型-引擎模型", "level": "2", "module_id": "6", "module_code": "engine_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "8", "top": "207.769px", "left": "243.769px", "name": "资产-模型-贴图", "level": "3", "module_id": "8", "module_code": "texture", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "14", "top": "320px", "left": "236px", "name": "资产-绑定-道具绑定", "level": "4", "module_id": "14", "module_code": "prop_rig", "step_category_id": "4", "step_category_parent_id": "1"}], [{"id": "15", "top": "391px", "left": "274px", "name": "资产-引擎设置-引擎材质", "level": "5", "module_id": "15", "module_code": "engine_material_set", "step_category_id": "5", "step_category_parent_id": "1"}]], "stepList": [{"id": "1", "code": "sketch_design", "name": "草图设计", "color": "#efd3f4", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "2", "code": "design", "name": "概念设计", "color": "#6b0c60", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "3", "code": "post_design", "name": "细化设计", "color": "#e52350", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "4", "code": "face_expression_design", "name": "表情设计", "color": "#9957cb", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "5", "code": "high_model", "name": "雕刻模型", "color": "#45c666", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "6", "code": "engine_model", "name": "引擎模型", "color": "#d7855b", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "7", "code": "amin_model", "name": "动画模型", "color": "#130419", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "8", "code": "texture", "name": "贴图材质", "color": "#b0bb22", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "10", "code": "character_face_expression", "name": "表情模型", "color": "#445adf", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "11", "code": "body_rig", "name": "身体绑定", "color": "#6a5daa", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "12", "code": "face_expression_rig", "name": "表情绑定", "color": "#0ddb5a", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "13", "code": "cloth_rig", "name": "布料绑定", "color": "#889a21", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "14", "code": "prop_rig", "name": "道具绑定", "color": "#5e4fed", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "15", "code": "engine_material_set", "name": "引擎材质", "color": "#ccc2d7", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "16", "code": "engine_cloth_set", "name": "引擎布料", "color": "#1f4172", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "41", "code": "uv_baking", "name": "UV和烘焙", "color": "#33FF00", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "42", "code": "expression_normal", "name": "表情法线", "color": "#0084FF", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}], "step_category_id": ["1"], "stepCategoryAttrList": [{"attribute_id": "1", "attribute_name": "风格", "attribute_value": "写实", "attributeOptions": [{"label": "写实", "value": "1"}, {"label": "卡通", "value": "2"}, {"label": "三渲二", "value": "3"}]}, {"attribute_id": "2", "attribute_name": "资产类型", "attribute_value": "道具", "attributeOptions": [{"label": "角色", "value": "4"}, {"label": "道具", "value": "5"}, {"label": "场景", "value": "6"}, {"label": "关卡", "value": "7"}]}, {"attribute_id": "3", "attribute_name": "等级", "attribute_value": "C", "attributeOptions": [{"label": "S", "value": "8"}, {"label": "A", "value": "9"}, {"label": "B", "value": "10"}, {"label": "C", "value": "11"}]}]}'
                ],
                'step_category' => 'asset'
            ],
            [
                'data' => [
                    'name' => '场景-S级',
                    'code' => 'scene_level_s',
                    'config' => '{"edges": [{"source": "2", "target": "3"}, {"source": "3", "target": "5"}, {"source": "5", "target": "6"}, {"source": "6", "target": "8"}, {"source": "8", "target": "14"}], "nodes": [[{"id": "2", "top": "82px", "left": "411px", "name": "资产-概念-概念设计", "level": "1", "module_id": "2", "module_code": "design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "3", "top": "131px", "left": "443px", "name": "资产-概念-细化设计", "level": "2", "module_id": "3", "module_code": "post_design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "5", "top": "217px", "left": "419px", "name": "资产-模型-雕刻模型", "level": "3", "module_id": "5", "module_code": "high_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "6", "top": "301px", "left": "437px", "name": "资产-模型-引擎模型", "level": "4", "module_id": "6", "module_code": "engine_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "8", "top": "364px", "left": "439px", "name": "资产-模型-贴图", "level": "5", "module_id": "8", "module_code": "texture", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "14", "top": "445px", "left": "433px", "name": "资产-引擎设置-引擎材质", "level": "6", "module_id": "14", "module_code": "engine_material_set", "step_category_id": "5", "step_category_parent_id": "1"}]], "stepList": [{"id": "1", "code": "sketch_design", "name": "草图设计", "color": "#535ca4", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "2", "code": "design", "name": "概念设计", "color": "#ddaa85", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "3", "code": "post_design", "name": "细化设计", "color": "#3b583c", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "4", "code": "face_expression_design", "name": "表情设计", "color": "#8d4473", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "5", "code": "high_model", "name": "雕刻模型", "color": "#9496e6", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "6", "code": "engine_model", "name": "引擎模型", "color": "#7793a9", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "7", "code": "amin_model", "name": "动画模型", "color": "#9f8e9d", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "8", "code": "texture", "name": "贴图", "color": "#c6f6b7", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "9", "code": "hair", "name": "毛发", "color": "#630d73", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "10", "code": "body_rig", "name": "身体绑定", "color": "#87fb82", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "11", "code": "face_expression_rig", "name": "表情绑定", "color": "#44f6f3", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "12", "code": "cloth_rig", "name": "布料绑定", "color": "#2ff5aa", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "13", "code": "prop_rig", "name": "道具绑定", "color": "#a46896", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "14", "code": "engine_material_set", "name": "引擎材质", "color": "#c80528", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "15", "code": "engine_cloth_set", "name": "引擎布料", "color": "#55ae9d", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "32", "code": "character_face_expression", "name": "表情模型", "color": "#1500FF", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}], "step_category_id": ["1"], "stepCategoryAttrList": [{"attribute_id": "1", "attribute_name": "风格", "attribute_value": "写实", "attributeOptions": [{"label": "写实", "value": "1"}, {"label": "卡通", "value": "2"}, {"label": "三渲二", "value": "3"}]}, {"attribute_id": "2", "attribute_name": "资产类型", "attribute_value": "场景", "attributeOptions": [{"label": "角色", "value": "4"}, {"label": "道具", "value": "5"}, {"label": "场景", "value": "6"}, {"label": "关卡", "value": "7"}]}, {"attribute_id": "3", "attribute_name": "等级", "attribute_value": "S", "attributeOptions": [{"label": "S", "value": "8"}, {"label": "A", "value": "9"}, {"label": "B", "value": "10"}, {"label": "C", "value": "11"}]}]}'
                ],
                'step_category' => 'asset'
            ],
            [
                'data' => [
                    'name' => '场景-A级',
                    'code' => 'scene_level_a',
                    'config' => '{"edges": [{"source": "2", "target": "3"}, {"source": "3", "target": "6"}, {"source": "6", "target": "8"}], "nodes": [[{"id": "2", "top": "57px", "left": "433px", "name": "资产-概念-概念设计", "level": "1", "module_id": "2", "module_code": "design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "3", "top": "144px", "left": "509px", "name": "资产-概念-细化设计", "level": "2", "module_id": "3", "module_code": "post_design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "6", "top": "268px", "left": "522px", "name": "资产-模型-引擎模型", "level": "3", "module_id": "6", "module_code": "engine_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "8", "top": "352px", "left": "523px", "name": "资产-模型-贴图", "level": "4", "module_id": "8", "module_code": "texture", "step_category_id": "3", "step_category_parent_id": "1"}]], "stepList": [{"id": "1", "code": "sketch_design", "name": "草图设计", "color": "#535ca4", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "2", "code": "design", "name": "概念设计", "color": "#ddaa85", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "3", "code": "post_design", "name": "细化设计", "color": "#3b583c", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "4", "code": "face_expression_design", "name": "表情设计", "color": "#8d4473", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "5", "code": "high_model", "name": "雕刻模型", "color": "#9496e6", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "6", "code": "engine_model", "name": "引擎模型", "color": "#7793a9", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "7", "code": "amin_model", "name": "动画模型", "color": "#9f8e9d", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "8", "code": "texture", "name": "贴图", "color": "#c6f6b7", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "9", "code": "hair", "name": "毛发", "color": "#630d73", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "10", "code": "body_rig", "name": "身体绑定", "color": "#87fb82", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "11", "code": "face_expression_rig", "name": "表情绑定", "color": "#44f6f3", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "12", "code": "cloth_rig", "name": "布料绑定", "color": "#2ff5aa", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "13", "code": "prop_rig", "name": "道具绑定", "color": "#a46896", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "14", "code": "engine_material_set", "name": "引擎材质", "color": "#c80528", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "15", "code": "engine_cloth_set", "name": "引擎布料", "color": "#55ae9d", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "32", "code": "character_face_expression", "name": "表情模型", "color": "#1500FF", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}], "step_category_id": ["1"], "stepCategoryAttrList": [{"attribute_id": "1", "attribute_name": "风格", "attribute_value": "写实", "attributeOptions": [{"label": "写实", "value": "1"}, {"label": "卡通", "value": "2"}, {"label": "三渲二", "value": "3"}]}, {"attribute_id": "2", "attribute_name": "资产类型", "attribute_value": "场景", "attributeOptions": [{"label": "角色", "value": "4"}, {"label": "道具", "value": "5"}, {"label": "场景", "value": "6"}, {"label": "关卡", "value": "7"}]}, {"attribute_id": "3", "attribute_name": "等级", "attribute_value": "A", "attributeOptions": [{"label": "S", "value": "8"}, {"label": "A", "value": "9"}, {"label": "B", "value": "10"}, {"label": "C", "value": "11"}]}]}'
                ],
                'step_category' => 'asset'
            ],
            [
                'data' => [
                    'name' => '场景-B级',
                    'code' => 'scene_level_b',
                    'config' => '{"edges": [{"source": "2", "target": "6"}, {"source": "6", "target": "8"}, {"source": "8", "target": "14"}], "nodes": [[{"id": "2", "top": "47px", "left": "108px", "name": "资产-概念-概念设计", "level": "1", "module_id": "2", "module_code": "design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "6", "top": "124px", "left": "92px", "name": "资产-模型-引擎模型", "level": "2", "module_id": "6", "module_code": "engine_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "8", "top": "220px", "left": "111px", "name": "资产-模型-贴图", "level": "3", "module_id": "8", "module_code": "texture", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "14", "top": "323px", "left": "151px", "name": "资产-引擎设置-引擎材质", "level": "4", "module_id": "14", "module_code": "engine_material_set", "step_category_id": "5", "step_category_parent_id": "1"}]], "stepList": [{"id": "1", "code": "sketch_design", "name": "草图设计", "color": "#535ca4", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "2", "code": "design", "name": "概念设计", "color": "#ddaa85", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "3", "code": "post_design", "name": "细化设计", "color": "#3b583c", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "4", "code": "face_expression_design", "name": "表情设计", "color": "#8d4473", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "5", "code": "high_model", "name": "雕刻模型", "color": "#9496e6", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "6", "code": "engine_model", "name": "引擎模型", "color": "#7793a9", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "7", "code": "amin_model", "name": "动画模型", "color": "#9f8e9d", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "8", "code": "texture", "name": "贴图", "color": "#c6f6b7", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "9", "code": "hair", "name": "毛发", "color": "#630d73", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "10", "code": "body_rig", "name": "身体绑定", "color": "#87fb82", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "11", "code": "face_expression_rig", "name": "表情绑定", "color": "#44f6f3", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "12", "code": "cloth_rig", "name": "布料绑定", "color": "#2ff5aa", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "13", "code": "prop_rig", "name": "道具绑定", "color": "#a46896", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "14", "code": "engine_material_set", "name": "引擎材质", "color": "#c80528", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "15", "code": "engine_cloth_set", "name": "引擎布料", "color": "#55ae9d", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "32", "code": "character_face_expression", "name": "表情模型", "color": "#1500FF", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}], "step_category_id": ["1"], "stepCategoryAttrList": [{"attribute_id": "1", "attribute_name": "风格", "attribute_value": "写实", "attributeOptions": [{"label": "写实", "value": "1"}, {"label": "卡通", "value": "2"}, {"label": "三渲二", "value": "3"}]}, {"attribute_id": "2", "attribute_name": "资产类型", "attribute_value": "场景", "attributeOptions": [{"label": "角色", "value": "4"}, {"label": "道具", "value": "5"}, {"label": "场景", "value": "6"}, {"label": "关卡", "value": "7"}]}, {"attribute_id": "3", "attribute_name": "等级", "attribute_value": "B", "attributeOptions": [{"label": "S", "value": "8"}, {"label": "A", "value": "9"}, {"label": "B", "value": "10"}, {"label": "C", "value": "11"}]}]}'
                ],
                'step_category' => 'asset'
            ],
            [
                'data' => [
                    'name' => '场景-C级',
                    'code' => 'scene_level_c',
                    'config' => '{"edges": [{"source": "2", "target": "6"}, {"source": "6", "target": "8"}, {"source": "8", "target": "14"}], "nodes": [[{"id": "2", "top": "80px", "left": "199px", "name": "资产-概念-概念设计", "level": "1", "module_id": "2", "module_code": "design", "step_category_id": "2", "step_category_parent_id": "1"}], [{"id": "6", "top": "181px", "left": "218px", "name": "资产-模型-引擎模型", "level": "2", "module_id": "6", "module_code": "engine_model", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "8", "top": "267px", "left": "207px", "name": "资产-模型-贴图", "level": "3", "module_id": "8", "module_code": "texture", "step_category_id": "3", "step_category_parent_id": "1"}], [{"id": "14", "top": "348px", "left": "208px", "name": "资产-引擎设置-引擎材质", "level": "4", "module_id": "14", "module_code": "engine_material_set", "step_category_id": "5", "step_category_parent_id": "1"}]], "stepList": [{"id": "1", "code": "sketch_design", "name": "草图设计", "color": "#535ca4", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "2", "code": "design", "name": "概念设计", "color": "#ddaa85", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "3", "code": "post_design", "name": "细化设计", "color": "#3b583c", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "4", "code": "face_expression_design", "name": "表情设计", "color": "#8d4473", "step_category_id": "2", "step_category_name": "概念", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "5", "code": "high_model", "name": "雕刻模型", "color": "#9496e6", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "6", "code": "engine_model", "name": "引擎模型", "color": "#7793a9", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "7", "code": "amin_model", "name": "动画模型", "color": "#9f8e9d", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "8", "code": "texture", "name": "贴图", "color": "#c6f6b7", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "9", "code": "hair", "name": "毛发", "color": "#630d73", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "10", "code": "body_rig", "name": "身体绑定", "color": "#87fb82", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "11", "code": "face_expression_rig", "name": "表情绑定", "color": "#44f6f3", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "12", "code": "cloth_rig", "name": "布料绑定", "color": "#2ff5aa", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "13", "code": "prop_rig", "name": "道具绑定", "color": "#a46896", "step_category_id": "4", "step_category_name": "绑定", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "14", "code": "engine_material_set", "name": "引擎材质", "color": "#c80528", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "15", "code": "engine_cloth_set", "name": "引擎布料", "color": "#55ae9d", "step_category_id": "5", "step_category_name": "引擎设置", "step_category_parent_id": "1", "step_category_parent_name": "资产"}, {"id": "32", "code": "character_face_expression", "name": "表情模型", "color": "#1500FF", "step_category_id": "3", "step_category_name": "模型", "step_category_parent_id": "1", "step_category_parent_name": "资产"}], "step_category_id": ["1"], "stepCategoryAttrList": [{"attribute_id": "1", "attribute_name": "风格", "attribute_value": "写实", "attributeOptions": [{"label": "写实", "value": "1"}, {"label": "卡通", "value": "2"}, {"label": "三渲二", "value": "3"}]}, {"attribute_id": "2", "attribute_name": "资产类型", "attribute_value": "场景", "attributeOptions": [{"label": "角色", "value": "4"}, {"label": "道具", "value": "5"}, {"label": "场景", "value": "6"}, {"label": "关卡", "value": "7"}]}, {"attribute_id": "3", "attribute_name": "等级", "attribute_value": "C", "attributeOptions": [{"label": "S", "value": "8"}, {"label": "A", "value": "9"}, {"label": "B", "value": "10"}, {"label": "C", "value": "11"}]}]}'
                ],
                'step_category' => 'asset'
            ],
            [
                'data' => [
                    'name' => '关卡-S级',
                    'code' => 'level_level_s',
                    'config' => '{"edges": [{"source": "21", "target": "17"}, {"source": "17", "target": "19"}, {"source": "19", "target": "20"}], "nodes": [[{"id": "21", "top": "7px", "left": "201px", "name": "关卡-关卡概念-关卡概念", "level": "1", "module_id": "21", "module_code": "level_design", "step_category_id": "10", "step_category_parent_id": "6"}], [{"id": "17", "top": "83px", "left": "282px", "name": "关卡-关卡制作-引擎关卡", "level": "2", "module_id": "17", "module_code": "engine_level", "step_category_id": "7", "step_category_parent_id": "6"}], [{"id": "19", "top": "232px", "left": "432px", "name": "关卡-关卡灯光-关卡灯光", "level": "3", "module_id": "19", "module_code": "levle_engine_light", "step_category_id": "8", "step_category_parent_id": "6"}], [{"id": "20", "top": "355px", "left": "485px", "name": "关卡-关卡特效-关卡特效", "level": "4", "module_id": "20", "module_code": "level_engine_efx", "step_category_id": "9", "step_category_parent_id": "6"}]], "stepList": [{"id": "17", "code": "engine_level", "name": "引擎关卡", "color": "#b0b928", "step_category_id": "7", "step_category_name": "关卡制作", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "18", "code": "engine_sub_level", "name": "细分关卡", "color": "#794253", "step_category_id": "7", "step_category_name": "关卡制作", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "19", "code": "levle_engine_light", "name": "关卡灯光", "color": "#3ebaa7", "step_category_id": "8", "step_category_name": "关卡灯光", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "20", "code": "level_engine_efx", "name": "关卡特效", "color": "#b40401", "step_category_id": "9", "step_category_name": "关卡特效", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "21", "code": "level_design", "name": "关卡概念", "color": "#ea279b", "step_category_id": "10", "step_category_name": "关卡概念", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}], "step_category_id": ["6"], "stepCategoryAttrList": [{"attribute_id": "1", "attribute_name": "风格", "attribute_value": "写实", "attributeOptions": [{"label": "写实", "value": "1"}, {"label": "卡通", "value": "2"}, {"label": "三渲二", "value": "3"}]}, {"attribute_id": "3", "attribute_name": "等级", "attribute_value": "S", "attributeOptions": [{"label": "S", "value": "8"}, {"label": "A", "value": "9"}, {"label": "B", "value": "10"}, {"label": "C", "value": "11"}]}]}'
                ],
                'step_category' => 'level'
            ],
            [
                'data' => [
                    'name' => '关卡-A级',
                    'code' => 'level_level_a',
                    'config' => '{"edges": [{"source": "21", "target": "17"}, {"source": "17", "target": "19"}, {"source": "19", "target": "20"}], "nodes": [[{"id": "21", "top": "-116px", "left": "-186px", "name": "关卡-关卡概念-关卡概念", "level": "1", "module_id": "21", "module_code": "level_design", "step_category_id": "10", "step_category_parent_id": "6"}], [{"id": "17", "top": "-19px", "left": "-153px", "name": "关卡-关卡制作-引擎关卡", "level": "2", "module_id": "17", "module_code": "engine_level", "step_category_id": "7", "step_category_parent_id": "6"}], [{"id": "19", "top": "135px", "left": "-116px", "name": "关卡-关卡灯光-关卡灯光", "level": "3", "module_id": "19", "module_code": "levle_engine_light", "step_category_id": "8", "step_category_parent_id": "6"}], [{"id": "20", "top": "217px", "left": "-123px", "name": "关卡-关卡特效-关卡特效", "level": "4", "module_id": "20", "module_code": "level_engine_efx", "step_category_id": "9", "step_category_parent_id": "6"}]], "stepList": [{"id": "17", "code": "engine_level", "name": "引擎关卡", "color": "#b0b928", "step_category_id": "7", "step_category_name": "关卡制作", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "18", "code": "engine_sub_level", "name": "细分关卡", "color": "#794253", "step_category_id": "7", "step_category_name": "关卡制作", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "19", "code": "levle_engine_light", "name": "关卡灯光", "color": "#3ebaa7", "step_category_id": "8", "step_category_name": "关卡灯光", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "20", "code": "level_engine_efx", "name": "关卡特效", "color": "#b40401", "step_category_id": "9", "step_category_name": "关卡特效", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "21", "code": "level_design", "name": "关卡概念", "color": "#ea279b", "step_category_id": "10", "step_category_name": "关卡概念", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}], "step_category_id": ["6"], "stepCategoryAttrList": [{"attribute_id": "1", "attribute_name": "风格", "attribute_value": "写实", "attributeOptions": [{"label": "写实", "value": "1"}, {"label": "卡通", "value": "2"}, {"label": "三渲二", "value": "3"}]}, {"attribute_id": "3", "attribute_name": "等级", "attribute_value": "A", "attributeOptions": [{"label": "S", "value": "8"}, {"label": "A", "value": "9"}, {"label": "B", "value": "10"}, {"label": "C", "value": "11"}]}]}'
                ],
                'step_category' => 'level'
            ],
            [
                'data' => [
                    'name' => '关卡-B级',
                    'code' => 'level_level_b',
                    'config' => '{"edges": [{"source": "21", "target": "17"}, {"source": "17", "target": "19"}, {"source": "19", "target": "20"}], "nodes": [[{"id": "21", "top": "-40px", "left": "-12px", "name": "关卡-关卡概念-关卡概念", "level": "1", "module_id": "21", "module_code": "level_design", "step_category_id": "10", "step_category_parent_id": "6"}], [{"id": "17", "top": "20px", "left": "9px", "name": "关卡-关卡制作-引擎关卡", "level": "2", "module_id": "17", "module_code": "engine_level", "step_category_id": "7", "step_category_parent_id": "6"}], [{"id": "19", "top": "91px", "left": "69px", "name": "关卡-关卡灯光-关卡灯光", "level": "3", "module_id": "19", "module_code": "levle_engine_light", "step_category_id": "8", "step_category_parent_id": "6"}], [{"id": "20", "top": "165px", "left": "78px", "name": "关卡-关卡特效-关卡特效", "level": "4", "module_id": "20", "module_code": "level_engine_efx", "step_category_id": "9", "step_category_parent_id": "6"}]], "stepList": [{"id": "17", "code": "engine_level", "name": "引擎关卡", "color": "#b0b928", "step_category_id": "7", "step_category_name": "关卡制作", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "18", "code": "engine_sub_level", "name": "细分关卡", "color": "#794253", "step_category_id": "7", "step_category_name": "关卡制作", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "19", "code": "levle_engine_light", "name": "关卡灯光", "color": "#3ebaa7", "step_category_id": "8", "step_category_name": "关卡灯光", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "20", "code": "level_engine_efx", "name": "关卡特效", "color": "#b40401", "step_category_id": "9", "step_category_name": "关卡特效", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "21", "code": "level_design", "name": "关卡概念", "color": "#ea279b", "step_category_id": "10", "step_category_name": "关卡概念", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}], "step_category_id": ["6"], "stepCategoryAttrList": [{"attribute_id": "1", "attribute_name": "风格", "attribute_value": "写实", "attributeOptions": [{"label": "写实", "value": "1"}, {"label": "卡通", "value": "2"}, {"label": "三渲二", "value": "3"}]}, {"attribute_id": "3", "attribute_name": "等级", "attribute_value": "B", "attributeOptions": [{"label": "S", "value": "8"}, {"label": "A", "value": "9"}, {"label": "B", "value": "10"}, {"label": "C", "value": "11"}]}]}'
                ],
                'step_category' => 'level'
            ],
            [
                'data' => [
                    'name' => '关卡-C级',
                    'code' => 'level_level_c',
                    'config' => '{"edges": [{"source": "21", "target": "17"}, {"source": "17", "target": "19"}, {"source": "19", "target": "20"}], "nodes": [[{"id": "21", "top": "59px", "left": "127px", "name": "关卡-关卡概念-关卡概念", "level": "1", "module_id": "21", "module_code": "level_design", "step_category_id": "10", "step_category_parent_id": "6"}], [{"id": "17", "top": "125px", "left": "131px", "name": "关卡-关卡制作-引擎关卡", "level": "2", "module_id": "17", "module_code": "engine_level", "step_category_id": "7", "step_category_parent_id": "6"}], [{"id": "19", "top": "204px", "left": "136px", "name": "关卡-关卡灯光-关卡灯光", "level": "3", "module_id": "19", "module_code": "levle_engine_light", "step_category_id": "8", "step_category_parent_id": "6"}], [{"id": "20", "top": "423px", "left": "260px", "name": "关卡-关卡特效-关卡特效", "level": "4", "module_id": "20", "module_code": "level_engine_efx", "step_category_id": "9", "step_category_parent_id": "6"}]], "stepList": [{"id": "17", "code": "engine_level", "name": "引擎关卡", "color": "#b0b928", "step_category_id": "7", "step_category_name": "关卡制作", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "18", "code": "engine_sub_level", "name": "细分关卡", "color": "#794253", "step_category_id": "7", "step_category_name": "关卡制作", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "19", "code": "levle_engine_light", "name": "关卡灯光", "color": "#3ebaa7", "step_category_id": "8", "step_category_name": "关卡灯光", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "20", "code": "level_engine_efx", "name": "关卡特效", "color": "#b40401", "step_category_id": "9", "step_category_name": "关卡特效", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}, {"id": "21", "code": "level_design", "name": "关卡概念", "color": "#ea279b", "step_category_id": "10", "step_category_name": "关卡概念", "step_category_parent_id": "6", "step_category_parent_name": "关卡"}], "step_category_id": ["6"], "stepCategoryAttrList": [{"attribute_id": "1", "attribute_name": "风格", "attribute_value": "写实", "attributeOptions": [{"label": "写实", "value": "1"}, {"label": "卡通", "value": "2"}, {"label": "三渲二", "value": "3"}]}, {"attribute_id": "3", "attribute_name": "等级", "attribute_value": "C", "attributeOptions": [{"label": "S", "value": "8"}, {"label": "A", "value": "9"}, {"label": "B", "value": "10"}, {"label": "C", "value": "11"}]}]}'
                ],
                'step_category' => 'level'
            ],
            [
                'data' => [
                    'name' => '捕捉序列',
                    'code' => 'sequence_mocap',
                    'config' => '{"edges": [{"source": "22", "target": "23"}, {"source": "23", "target": "24"}, {"source": "24", "target": "25"}], "nodes": [[{"id": "22", "top": "26px", "left": "198px", "name": "序列-捕捉-动作捕捉", "level": "1", "module_id": "22", "module_code": "motion_track", "step_category_id": "12", "step_category_parent_id": "11"}], [{"id": "23", "top": "118px", "left": "279px", "name": "序列-捕捉-表情捕捉", "level": "2", "module_id": "23", "module_code": "face_track", "step_category_id": "12", "step_category_parent_id": "11"}], [{"id": "24", "top": "253px", "left": "375px", "name": "序列-预演-layout", "level": "3", "module_id": "24", "module_code": "layout", "step_category_id": "13", "step_category_parent_id": "11"}], [{"id": "25", "top": "409px", "left": "480px", "name": "序列-动作-动画", "level": "4", "module_id": "25", "module_code": "animation", "step_category_id": "14", "step_category_parent_id": "11"}]], "stepList": [{"id": "22", "code": "motion_track", "name": "动作捕捉", "color": "#17b1a9", "step_category_id": "12", "step_category_name": "捕捉", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "23", "code": "face_track", "name": "表情捕捉", "color": "#cdb0b3", "step_category_id": "12", "step_category_name": "捕捉", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "24", "code": "layout", "name": "layout", "color": "#236313", "step_category_id": "13", "step_category_name": "预演", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "25", "code": "animation", "name": "动画", "color": "#7e06d1", "step_category_id": "14", "step_category_name": "动作", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "26", "code": "ex_cloth_solution", "name": "布料解算", "color": "#c98b86", "step_category_id": "15", "step_category_name": "解算", "step_category_parent_id": "11", "step_category_parent_name": "序列"}]}'
                ],
                'step_category' => 'sequence'
            ],
            [
                'data' => [
                    'name' => '捕捉和布料解算序列',
                    'code' => 'sequence_mocap_clothsolution',
                    'config' => '{"edges": [{"source": "22", "target": "23"}, {"source": "23", "target": "24"}, {"source": "24", "target": "25"}, {"source": "25", "target": "26"}], "nodes": [[{"id": "22", "top": "20px", "left": "45px", "name": "序列-捕捉-动作捕捉", "level": "1", "module_id": "22", "module_code": "motion_track", "step_category_id": "12", "step_category_parent_id": "11"}], [{"id": "23", "top": "143px", "left": "180px", "name": "序列-捕捉-表情捕捉", "level": "2", "module_id": "23", "module_code": "face_track", "step_category_id": "12", "step_category_parent_id": "11"}], [{"id": "24", "top": "279px", "left": "185px", "name": "序列-预演-layout", "level": "3", "module_id": "24", "module_code": "layout", "step_category_id": "13", "step_category_parent_id": "11"}], [{"id": "25", "top": "418px", "left": "263px", "name": "序列-动作-动画", "level": "4", "module_id": "25", "module_code": "animation", "step_category_id": "14", "step_category_parent_id": "11"}], [{"id": "26", "top": "573px", "left": "297px", "name": "序列-解算-布料解算", "level": "5", "module_id": "26", "module_code": "ex_cloth_solution", "step_category_id": "15", "step_category_parent_id": "11"}]], "stepList": [{"id": "22", "code": "motion_track", "name": "动作捕捉", "color": "#17b1a9", "step_category_id": "12", "step_category_name": "捕捉", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "23", "code": "face_track", "name": "表情捕捉", "color": "#cdb0b3", "step_category_id": "12", "step_category_name": "捕捉", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "24", "code": "layout", "name": "layout", "color": "#236313", "step_category_id": "13", "step_category_name": "预演", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "25", "code": "animation", "name": "动画", "color": "#7e06d1", "step_category_id": "14", "step_category_name": "动作", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "26", "code": "ex_cloth_solution", "name": "布料解算", "color": "#c98b86", "step_category_id": "15", "step_category_name": "解算", "step_category_parent_id": "11", "step_category_parent_name": "序列"}]}'
                ],
                'step_category' => 'sequence'
            ],
            [
                'data' => [
                    'name' => '动作序列',
                    'code' => 'sequence_action',
                    'config' => '{"edges": [{"source": "24", "target": "25"}], "nodes": [[{"id": "24", "top": "38px", "left": "82px", "name": "序列-预演-layout", "level": "1", "module_id": "24", "module_code": "layout", "step_category_id": "13", "step_category_parent_id": "11"}], [{"id": "25", "top": "130px", "left": "97px", "name": "序列-动作-动画", "level": "2", "module_id": "25", "module_code": "animation", "step_category_id": "14", "step_category_parent_id": "11"}]], "stepList": [{"id": "22", "code": "motion_track", "name": "动作捕捉", "color": "#17b1a9", "step_category_id": "12", "step_category_name": "捕捉", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "23", "code": "face_track", "name": "表情捕捉", "color": "#cdb0b3", "step_category_id": "12", "step_category_name": "捕捉", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "24", "code": "layout", "name": "layout", "color": "#236313", "step_category_id": "13", "step_category_name": "预演", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "25", "code": "animation", "name": "动画", "color": "#7e06d1", "step_category_id": "14", "step_category_name": "动作", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "26", "code": "ex_cloth_solution", "name": "布料解算", "color": "#c98b86", "step_category_id": "15", "step_category_name": "解算", "step_category_parent_id": "11", "step_category_parent_name": "序列"}]}'
                ],
                'step_category' => 'sequence'
            ],
            [
                'data' => [
                    'name' => '动作和布料解算序列',
                    'code' => 'sequence_action_clothsolution',
                    'config' => '{"edges": [{"source": "24", "target": "25"}, {"source": "25", "target": "26"}], "nodes": [[{"id": "24", "top": "78px", "left": "350px", "name": "序列-预演-layout", "level": "1", "module_id": "24", "module_code": "layout", "step_category_id": "13", "step_category_parent_id": "11"}], [{"id": "25", "top": "185px", "left": "416px", "name": "序列-动作-动画", "level": "2", "module_id": "25", "module_code": "animation", "step_category_id": "14", "step_category_parent_id": "11"}], [{"id": "26", "top": "285px", "left": "415px", "name": "序列-解算-布料解算", "level": "3", "module_id": "26", "module_code": "ex_cloth_solution", "step_category_id": "15", "step_category_parent_id": "11"}]], "stepList": [{"id": "22", "code": "motion_track", "name": "动作捕捉", "color": "#17b1a9", "step_category_id": "12", "step_category_name": "捕捉", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "23", "code": "face_track", "name": "表情捕捉", "color": "#cdb0b3", "step_category_id": "12", "step_category_name": "捕捉", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "24", "code": "layout", "name": "layout", "color": "#236313", "step_category_id": "13", "step_category_name": "预演", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "25", "code": "animation", "name": "动画", "color": "#7e06d1", "step_category_id": "14", "step_category_name": "动作", "step_category_parent_id": "11", "step_category_parent_name": "序列"}, {"id": "26", "code": "ex_cloth_solution", "name": "布料解算", "color": "#c98b86", "step_category_id": "15", "step_category_name": "解算", "step_category_parent_id": "11", "step_category_parent_name": "序列"}]}'
                ],
                'step_category' => 'sequence'
            ],
            [
                'data' => [
                    'name' => '引擎镜头',
                    'code' => 'engine_shot',
                    'config' => '{"edges": [{"source": "25", "target": "28"}, {"source": "28", "target": "30"}], "nodes": [[{"id": "25", "top": "80px", "left": "83px", "name": "镜头-灯光-引擎灯光", "level": "1", "module_id": "25", "module_code": "engine_light", "step_category_id": "16", "step_category_parent_id": "15"}], [{"id": "28", "top": "186px", "left": "108px", "name": "镜头-渲染-引擎渲染", "level": "2", "module_id": "28", "module_code": "engine_render", "step_category_id": "18", "step_category_parent_id": "15"}], [{"id": "30", "top": "310px", "left": "117px", "name": "镜头-调色-调色", "level": "3", "module_id": "30", "module_code": "color", "step_category_id": "19", "step_category_parent_id": "15"}]], "stepList": [{"id": "25", "code": "engine_light", "name": "引擎灯光", "color": "#061a2a", "step_category_id": "16", "step_category_name": "灯光", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}, {"id": "26", "code": "engine_efx", "name": "引擎特效", "color": "#a967e9", "step_category_id": "17", "step_category_name": "特效", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}, {"id": "27", "code": "other_efx", "name": "其他特效", "color": "#72d7f1", "step_category_id": "17", "step_category_name": "特效", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}, {"id": "28", "code": "engine_render", "name": "引擎渲染", "color": "#718166", "step_category_id": "18", "step_category_name": "渲染", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}, {"id": "29", "code": "other_render", "name": "其他渲染", "color": "#8843ec", "step_category_id": "18", "step_category_name": "渲染", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}, {"id": "30", "code": "color", "name": "调色", "color": "#f1e0de", "step_category_id": "19", "step_category_name": "调色", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}, {"id": "31", "code": "comp", "name": "合成", "color": "#3ce516", "step_category_id": "20", "step_category_name": "合成", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}]}'
                ],
                'step_category' => 'shot'
            ],
            [
                'data' => [
                    'name' => '布料解算镜头',
                    'code' => 'cloth_solution_shot',
                    'config' => '{"edges": [{"source": "25", "target": "26"}, {"source": "26", "target": "28"}, {"source": "28", "target": "30"}], "nodes": [[{"id": "25", "top": "72px", "left": "-32px", "name": "镜头-灯光-引擎灯光", "level": "1", "module_id": "25", "module_code": "engine_light", "step_category_id": "16", "step_category_parent_id": "15"}], [{"id": "26", "top": "138.824px", "left": "-22.7647px", "name": "镜头-特效-引擎特效", "level": "2", "module_id": "26", "module_code": "engine_efx", "step_category_id": "17", "step_category_parent_id": "15"}], [{"id": "28", "top": "214.941px", "left": "-20.1176px", "name": "镜头-渲染-引擎渲染", "level": "3", "module_id": "28", "module_code": "engine_render", "step_category_id": "18", "step_category_parent_id": "15"}], [{"id": "30", "top": "290px", "left": "-14.1765px", "name": "镜头-调色-调色", "level": "4", "module_id": "30", "module_code": "color", "step_category_id": "19", "step_category_parent_id": "15"}]], "stepList": [{"id": "25", "code": "engine_light", "name": "引擎灯光", "color": "#061a2a", "step_category_id": "16", "step_category_name": "灯光", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}, {"id": "26", "code": "engine_efx", "name": "引擎特效", "color": "#a967e9", "step_category_id": "17", "step_category_name": "特效", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}, {"id": "27", "code": "other_efx", "name": "其他特效", "color": "#72d7f1", "step_category_id": "17", "step_category_name": "特效", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}, {"id": "28", "code": "engine_render", "name": "引擎渲染", "color": "#718166", "step_category_id": "18", "step_category_name": "渲染", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}, {"id": "29", "code": "other_render", "name": "其他渲染", "color": "#8843ec", "step_category_id": "18", "step_category_name": "渲染", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}, {"id": "30", "code": "color", "name": "调色", "color": "#f1e0de", "step_category_id": "19", "step_category_name": "调色", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}, {"id": "31", "code": "comp", "name": "合成", "color": "#3ce516", "step_category_id": "20", "step_category_name": "合成", "step_category_parent_id": "15", "step_category_parent_name": "镜头"}]}'
                ],
                'step_category' => 'shot'
            ],
            [
                'data' => [
                    'name' => '特效解算镜头',
                    'code' => 'efx_solution_shot',
                    'config' => '{"edges": [{"source": "27", "target": "28"}, {"source": "28", "target": "30"}, {"source": "29", "target": "31"}, {"source": "31", "target": "32"}, {"source": "30", "target": "33"}, {"source": "32", "target": "33"}], "nodes": [[{"id": "27", "top": "7.11111px", "left": "216.667px", "name": "镜头-灯光-引擎灯光", "level": "1", "module_id": "27", "module_code": "engine_light", "step_category_id": "17", "step_category_parent_id": "16"}, {"id": "29", "top": "7.22222px", "left": "541.333px", "name": "镜头-特效-其他特效", "level": "1", "module_id": "29", "module_code": "other_efx", "step_category_id": "18", "step_category_parent_id": "16"}], [{"id": "28", "top": "157.778px", "left": "233.778px", "name": "镜头-特效-引擎特效", "level": "2", "module_id": "28", "module_code": "engine_efx", "step_category_id": "18", "step_category_parent_id": "16"}, {"id": "31", "top": "167.778px", "left": "581.222px", "name": "镜头-渲染-其他渲染", "level": "2", "module_id": "31", "module_code": "other_render", "step_category_id": "19", "step_category_parent_id": "16"}], [{"id": "30", "top": "336.333px", "left": "229.444px", "name": "镜头-渲染-引擎渲染", "level": "3", "module_id": "30", "module_code": "engine_render", "step_category_id": "19", "step_category_parent_id": "16"}, {"id": "32", "top": "324.222px", "left": "518.556px", "name": "镜头-调色-调色", "level": "3", "module_id": "32", "module_code": "color", "step_category_id": "20", "step_category_parent_id": "16"}], [{"id": "33", "top": "567.556px", "left": "366.889px", "name": "镜头-合成-合成", "level": "4", "module_id": "33", "module_code": "comp", "step_category_id": "21", "step_category_parent_id": "16"}]], "stepList": [{"id": "27", "code": "engine_light", "name": "引擎灯光", "color": "#26c265", "step_category_id": "17", "step_category_name": "灯光", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "28", "code": "engine_efx", "name": "引擎特效", "color": "#d10df8", "step_category_id": "18", "step_category_name": "特效", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "29", "code": "other_efx", "name": "其他特效", "color": "#c2b2e8", "step_category_id": "18", "step_category_name": "特效", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "30", "code": "engine_render", "name": "引擎渲染", "color": "#a55a21", "step_category_id": "19", "step_category_name": "渲染", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "31", "code": "other_render", "name": "其他渲染", "color": "#b08630", "step_category_id": "19", "step_category_name": "渲染", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "32", "code": "color", "name": "调色", "color": "#4fb64b", "step_category_id": "20", "step_category_name": "调色", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "33", "code": "comp", "name": "合成", "color": "#5772ba", "step_category_id": "21", "step_category_name": "合成", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}]}'
                ],
                'step_category' => 'shot'
            ],
            [
                'data' => [
                    'name' => '布料和特效解算镜头',
                    'code' => 'cloth_efx_solution_shot',
                    'config' => '{"edges": [{"source": "27", "target": "28"}, {"source": "28", "target": "30"}, {"source": "29", "target": "31"}, {"source": "31", "target": "32"}, {"source": "30", "target": "33"}, {"source": "32", "target": "33"}], "nodes": [[{"id": "27", "top": "124px", "left": "331px", "name": "镜头-灯光-引擎灯光", "level": "1", "module_id": "27", "module_code": "engine_light", "step_category_id": "17", "step_category_parent_id": "16"}, {"id": "29", "top": "95.3333px", "left": "670px", "name": "镜头-特效-其他特效", "level": "1", "module_id": "29", "module_code": "other_efx", "step_category_id": "18", "step_category_parent_id": "16"}], [{"id": "28", "top": "192px", "left": "348px", "name": "镜头-特效-引擎特效", "level": "2", "module_id": "28", "module_code": "engine_efx", "step_category_id": "18", "step_category_parent_id": "16"}, {"id": "31", "top": "197.5px", "left": "697.5px", "name": "镜头-渲染-其他渲染", "level": "2", "module_id": "31", "module_code": "other_render", "step_category_id": "19", "step_category_parent_id": "16"}], [{"id": "30", "top": "268.25px", "left": "372.75px", "name": "镜头-渲染-引擎渲染", "level": "3", "module_id": "30", "module_code": "engine_render", "step_category_id": "19", "step_category_parent_id": "16"}, {"id": "32", "top": "276px", "left": "651px", "name": "镜头-调色-调色", "level": "3", "module_id": "32", "module_code": "color", "step_category_id": "20", "step_category_parent_id": "16"}], [{"id": "33", "top": "417px", "left": "461px", "name": "镜头-合成-合成", "level": "4", "module_id": "33", "module_code": "comp", "step_category_id": "21", "step_category_parent_id": "16"}]], "stepList": [{"id": "27", "code": "engine_light", "name": "引擎灯光", "color": "#26c265", "step_category_id": "17", "step_category_name": "灯光", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "28", "code": "engine_efx", "name": "引擎特效", "color": "#d10df8", "step_category_id": "18", "step_category_name": "特效", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "29", "code": "other_efx", "name": "其他特效", "color": "#c2b2e8", "step_category_id": "18", "step_category_name": "特效", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "30", "code": "engine_render", "name": "引擎渲染", "color": "#a55a21", "step_category_id": "19", "step_category_name": "渲染", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "31", "code": "other_render", "name": "其他渲染", "color": "#b08630", "step_category_id": "19", "step_category_name": "渲染", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "32", "code": "color", "name": "调色", "color": "#4fb64b", "step_category_id": "20", "step_category_name": "调色", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "33", "code": "comp", "name": "合成", "color": "#5772ba", "step_category_id": "21", "step_category_name": "合成", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}]}'
                ],
                'step_category' => 'shot'
            ],
            [
                'data' => [
                    'name' => '引擎特效镜头',
                    'code' => 'engine_efx_shot',
                    'config' => '{"edges": [{"source": "27", "target": "28"}, {"source": "28", "target": "30"}, {"source": "30", "target": "32"}], "nodes": [[{"id": "27", "top": "30px", "left": "179px", "name": "镜头-灯光-引擎灯光", "level": "1", "module_id": "27", "module_code": "engine_light", "step_category_id": "17", "step_category_parent_id": "16"}], [{"id": "28", "top": "103px", "left": "175px", "name": "镜头-特效-引擎特效", "level": "2", "module_id": "28", "module_code": "engine_efx", "step_category_id": "18", "step_category_parent_id": "16"}], [{"id": "30", "top": "191px", "left": "178px", "name": "镜头-渲染-引擎渲染", "level": "3", "module_id": "30", "module_code": "engine_render", "step_category_id": "19", "step_category_parent_id": "16"}], [{"id": "32", "top": "251px", "left": "196px", "name": "镜头-调色-调色", "level": "4", "module_id": "32", "module_code": "color", "step_category_id": "20", "step_category_parent_id": "16"}]], "stepList": [{"id": "27", "code": "engine_light", "name": "引擎灯光", "color": "#26c265", "step_category_id": "17", "step_category_name": "灯光", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "28", "code": "engine_efx", "name": "引擎特效", "color": "#d10df8", "step_category_id": "18", "step_category_name": "特效", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "29", "code": "other_efx", "name": "其他特效", "color": "#c2b2e8", "step_category_id": "18", "step_category_name": "特效", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "30", "code": "engine_render", "name": "引擎渲染", "color": "#a55a21", "step_category_id": "19", "step_category_name": "渲染", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "31", "code": "other_render", "name": "其他渲染", "color": "#b08630", "step_category_id": "19", "step_category_name": "渲染", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "32", "code": "color", "name": "调色", "color": "#4fb64b", "step_category_id": "20", "step_category_name": "调色", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}, {"id": "33", "code": "comp", "name": "合成", "color": "#5772ba", "step_category_id": "21", "step_category_name": "合成", "step_category_parent_id": "16", "step_category_parent_name": "镜头"}]}'
                ],
                'step_category' => 'shot'
            ],
            [
                'data' => [
                    'name' => '剧本策划',
                    'code' => 'script_planning',
                    'config' => '{"edges": [{"source": "34", "target": "35"}, {"source": "34", "target": "36"}], "nodes": [[{"id": "34", "top": "-68px", "left": "130px", "name": "剧本-创作-世界观", "level": "1", "module_id": "34", "module_code": "story_worldview", "step_category_id": "23", "step_category_parent_id": "22"}], [{"id": "35", "top": "73px", "left": "-99px", "name": "剧本-创作-剧本大纲", "level": "2", "module_id": "35", "module_code": "story_outline", "step_category_id": "23", "step_category_parent_id": "22"}, {"id": "36", "top": "69px", "left": "305px", "name": "剧本-创作-人物小传", "level": "2", "module_id": "36", "module_code": "character_biography", "step_category_id": "23", "step_category_parent_id": "22"}]], "stepList": [{"id": "34", "code": "story_worldview", "name": "世界观", "color": "#A2FF00", "step_category_id": "23", "step_category_name": "创作", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}, {"id": "35", "code": "story_outline", "name": "剧本大纲", "color": "#2AFF00", "step_category_id": "23", "step_category_name": "创作", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}, {"id": "36", "code": "character_biography", "name": "人物小传", "color": "#00F7FF", "step_category_id": "23", "step_category_name": "创作", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}, {"id": "37", "code": "polt_outline", "name": "剧情梗概", "color": "#007BFF", "step_category_id": "24", "step_category_name": "剧情", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}, {"id": "38", "code": "story", "name": "剧本", "color": "#C300FF", "step_category_id": "24", "step_category_name": "剧情", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}, {"id": "39", "code": "script", "name": "脚本", "color": "#F200FF", "step_category_id": "25", "step_category_name": "脚本", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}, {"id": "40", "code": "storyboard", "name": "分镜", "color": "#FF0022", "step_category_id": "26", "step_category_name": "分镜", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}]}'
                ],
                'step_category' => 'story'
            ],
            [
                'data' => [
                    'name' => '剧集创作',
                    'code' => 'episodes',
                    'config' => '{"edges": [{"source": "37", "target": "38"}, {"source": "38", "target": "39"}, {"source": "39", "target": "40"}], "nodes": [[{"id": "37", "top": "188px", "left": "194px", "name": "剧本-剧情-剧情梗概", "level": "1", "module_id": "37", "module_code": "polt_outline", "step_category_id": "24", "step_category_parent_id": "22"}], [{"id": "38", "top": "282px", "left": "246px", "name": "剧本-剧情-剧本", "level": "2", "module_id": "38", "module_code": "story", "step_category_id": "24", "step_category_parent_id": "22"}], [{"id": "39", "top": "399px", "left": "304px", "name": "剧本-脚本-脚本", "level": "3", "module_id": "39", "module_code": "script", "step_category_id": "25", "step_category_parent_id": "22"}], [{"id": "40", "top": "505px", "left": "341px", "name": "剧本-分镜-分镜", "level": "4", "module_id": "40", "module_code": "storyboard", "step_category_id": "26", "step_category_parent_id": "22"}]], "stepList": [{"id": "34", "code": "story_worldview", "name": "世界观", "color": "#A2FF00", "step_category_id": "23", "step_category_name": "创作", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}, {"id": "35", "code": "story_outline", "name": "剧本大纲", "color": "#2AFF00", "step_category_id": "23", "step_category_name": "创作", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}, {"id": "36", "code": "character_biography", "name": "人物小传", "color": "#00F7FF", "step_category_id": "23", "step_category_name": "创作", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}, {"id": "37", "code": "polt_outline", "name": "剧情梗概", "color": "#007BFF", "step_category_id": "24", "step_category_name": "剧情", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}, {"id": "38", "code": "story", "name": "剧本", "color": "#C300FF", "step_category_id": "24", "step_category_name": "剧情", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}, {"id": "39", "code": "script", "name": "脚本", "color": "#F200FF", "step_category_id": "25", "step_category_name": "脚本", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}, {"id": "40", "code": "storyboard", "name": "分镜", "color": "#FF0022", "step_category_id": "26", "step_category_name": "分镜", "step_category_parent_id": "22", "step_category_parent_name": "剧本"}]}'
                ],
                'step_category' => 'story'
            ]
        ];


        //处理工序数据
        foreach ($rows as &$flow) {
            $config = json_decode($flow['data']['config'], true);
            $relations = $config['edges'];
            $change = [];
            foreach ($config['nodes'] as &$node) {
                foreach ($node as &$step) {
                    $stepFromDatabase = $this->query("SELECT * FROM step WHERE code = '{$step['module_code']}'")->fetch();
                    if ($step['id'] != $stepFromDatabase['id']) {
                        $change[$step['id']] = ['from' => $step['id'], 'to' => $stepFromDatabase['id']];
                        $step['id'] = $stepFromDatabase['id'];
                        $step['module_id'] = $stepFromDatabase['id']; //module_id  是前端使用的step_id
                    }
                }
            }
            $relations = array_map(function (&$item) use ($change) {
                $sourceReplace = false;
                $targetReplace = false;
                foreach ($change as $changeItem) {
                    if ($item['source'] == $changeItem['from'] && !$sourceReplace) {
                        $item['source'] = $changeItem['to'];
                        $sourceReplace = true;
                    }
                    if ($item['target'] == $changeItem['from'] && !$targetReplace) {
                        $item['target'] = $changeItem['to'];
                        $targetReplace = true;
                    }
                }
                return $item;
            }, $relations);

            $config['edges'] = $relations;
            $flow['data']['config'] = json_encode($config);
        }


        $stepWorkFlowAddData = [];
        foreach ($rows as $row) {
            $row['data']['uuid'] = Webpatser\Uuid\Uuid::generate()->string;
            $row['data']['step_category_id'] = $allStepCategoryData[$row['step_category']]['id'];
            $stepWorkFlowAddData[] = $row['data'];
        }

        $this->table('step_workflow')->insert($stepWorkFlowAddData)->save();
    }

    /**
     * Migrate Down.
     */
    function down()
    {
        $this->execute('DELETE FROM step_workflow');
    }
}
